package com.ruoyi.blogs.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;

/**
 * Banner管理对象 bs_banner
 *
 * @author ruoyi
 * @date 2022-10-30
 */
@ApiModel(value = "BsBanner", description = "banner实体")
public class BsBanner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty("id")
    private String id;

    /**
     * banner标题
     */
    @ApiModelProperty("banner标题")
    @Excel(name = "banner标题")
    private String title;

    /**
     * banner图
     */
    @ApiModelProperty("banner图")
    @Excel(name = "banner图")
    private String imgUrl;

    /**
     * 是否外链
     */
    @ApiModelProperty("是否外链")
    @Excel(name = "是否外链")
    private Integer isOutside;

    /**
     * 外链链接
     */
    @ApiModelProperty("外链链接")
    @Excel(name = "外链链接")
    private String outsideHref;

    /**
     * 排序序号
     */
    @ApiModelProperty("排序序号")
    @Excel(name = "排序序号")
    private Long orderNum;

    /**
     * 是否显示 0显示 1不显示
     */
    @ApiModelProperty("是否显示 0显示 1不显示")
    @Excel(name = "是否显示 0显示 1不显示")
    private Integer visible;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    @Excel(name = "用户名")
    private String userName;

    /** 内链笔记id */
    @Excel(name = "内链笔记id")
    @ApiModelProperty("内链笔记id")
    private String noteId;

    private BsNote note;

    public BsNote getNote() {
        return note;
    }

    public void setNote(BsNote note) {
        this.note = note;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String noteId) {
        this.noteId = noteId;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setIsOutside(Integer isOutside) {
        this.isOutside = isOutside;
    }

    public Integer getIsOutside() {
        return isOutside;
    }

    public void setOutsideHref(String outsideHref) {
        this.outsideHref = outsideHref;
    }

    public String getOutsideHref() {
        return outsideHref;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("imgUrl", getImgUrl())
                .append("isOutside", getIsOutside())
                .append("outsideHref", getOutsideHref())
                .append("orderNum", getOrderNum())
                .append("visible", getVisible())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}